import os
from google.appengine.ext.webapp import template as Template

class View():
  def __init__(self, handler, path, template, session = None):
    self.handler = handler
    self.path = path
    self.template = template
    self.session = session


  def doPost(self, s = None):
    self.WRITE("inside do Post")
  def doGet(self, s = None):
    self.WRITE("inside do Get")
 
 # HTTP handling here
  def RENDER(self, file, params):
    
    return self.WRITE(Template.render(self.path + file, params))
  def WRITE(self, info):
    return self.handler.response.out.write(info)
  def GET(self, req):
    return self.handler.request.get(req)



